package org.jimthompson.delinkious.fake;

import java.util.Date;

import org.jimthompson.delinkious.Blog;
import org.jimthompson.delinkious.BlogPost;

import com.redv.bloggerapi.client.Post;

public class FakeBlog implements Blog
{
	public BlogPost findMostRecentPostInCategory(String target_category, int count)
	{
        // Get the date for right now...
        Date d = new Date();
        
        // Convert it to milliseconds.
        long time = d.getTime();
        
        // Back it up by one second, and plug it back into the Date
        time -= 1000;
        d.setTime(time);
        
        FakeBlogPost post = new FakeBlogPost(d, target_category, "Test post");
        return post;
	}
}
